package chapter_7;

import java.io.File;

public class Test1 {
    public static void main(String[] args) {
        File file = new File("D:\\a.txt");
        File file1 = new File("D:\\","a.txt");

        File path = new File("D:\\");
        File file2 = new File(path,"a.txt");

        System.out.println(file.getPath());
        System.out.println(file1.getPath());
        System.out.println(file2.getPath());

    }
}
